<template>
  <div class="footer">
    <button @click="del">清空数据</button>
    <div><span>1</span><span>/</span><span>4</span></div>
  </div>
</template>

<script>
/* 清空操作  
 操作就是将arr清空  点击按钮 arr数据清空


*/
export default {
  methods: {
    del() {
      this.$eventBus.$emit("emptyArr");
    },
  },
};
</script>

<style lang="scss" scoped>
.footer {
  display: flex;
  justify-content: space-between;
}
</style>